function addEvent(obj, evt, func, capture) {
	if(obj.addEventListener) {
		obj.addEventListener(evt, func, capture);
	}
	else if(obj.attachEvent) {
		obj.attachEvent('on' + evt, func);
	}
	else {
		alert('Hmmm, your browser doesn\'t support anything required for modern websites.\n\nPrepare for a life changing experience though...\n\nFirefox is here.  Please getfirefox.com');
		window.location='http://www.getfirefox.com/';
	}
}

function createMethodReference(object, method) {
	if(!(method instanceof Function)) {
		method = object[method];
	}
	return function( ) {
		method.apply(object, arguments);
	};
};